package cn.huugh;

import cn.huugh.dao.IUserDao;
import cn.huugh.dao.impl.UserDao;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.*;

@Configuration
@ComponentScan
@PropertySource("classpath:config.properties")
public class SpringConfiguration {
    @Bean("UserDao")
    public IUserDao getUserDao(){
        //System.out.println(a);
        return new UserDao();
    }
}
